package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.LogisticsPriceDTO;
import com.itheima.pojo.LogisticsPrice;

import java.util.List;

public interface LogisticsPriceService extends IService<LogisticsPrice> {

    Page<LogisticsPriceDTO> getLogisticsPricePage(Page<LogisticsPriceDTO> page, LogisticsPriceDTO dto);

    LogisticsPrice getLogisticsPriceById(Long id);

    boolean saveLogisticsPrice(LogisticsPrice logisticsPrice);

    boolean updateLogisticsPrice(LogisticsPrice logisticsPrice);

    boolean deleteLogisticsPrice(Long id);

    List<LogisticsPrice> listAll();

    List<LogisticsPriceDTO> queryPricesByCompany(Integer companyId);

    boolean batchSavePrices(Integer companyId, List<LogisticsPriceDTO> prices);
}